package com.tuyenmonkey.mkloader.model;

import ohos.agp.render.Canvas;
import ohos.agp.utils.Point;

/**
 * Created by Tuyen Nguyen on 2/12/17.
 */

public class Line extends GraphicObject {
  private Point point1;
  private Point point2;

  public void setPoint1(Point point1) {
    this.point1 = point1;
  }

  public void setPoint2(Point point2) {
    this.point2 = point2;
  }

  public Point getPoint1() {
    return point1;
  }

  public Point getPoint2() {
    return point2;
  }

  @Override public void draw(Canvas canvas) {
    canvas.drawLine(point1,point2, paint);
  }
}
